package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 * @version v1.0
 * @date 2019-7-5 14:54:48
 * @description
 **/
public interface RoleService {
    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);

    Role findRoleById(Integer id);

    Map<String, Integer[]> findMenuIdsAndPermissionIdsByRoleId(Integer id);

    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

    Result delete(Integer id);

    List<Role> findAll();
}
